<?php
	class UserPatient extends ModuleQuery {

		public function __construct($table_def = array()){	
			global $_SESSION;
			if(!$this->connection){
				$this->sql_connect();	
			}

			$this->defineModule();

			//form other variables if defined
			if(is_array($table_def)){
				foreach($table_def as $key => $val){
					$this->{$key} = $val;
				}
			}
		}	

		public function defineModule(){
			$this->tableName  	= 'user_patient';			
			$this->primaryKey 	= 'user_patient.id';
			$this->select 		= 'user_patient.*';
		}
		
	}
?>